package com.b511.swpu.cementbackend.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.persistence.*;
import javax.validation.constraints.Min;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 地层信息表
public class Stratum extends CementBaseEntity {

    private Double depth;

    @Column(length = 50)
    private String type;

    @Column(length = 50)
    private String system;

    @Column(length = 50)
    private String series;

    @Column(length = 50)
    private String formation;

    @Column(length = 50)
    private String member;

    private Double thickness;

    @Column(length = 100)
    private String lithology;

    @ManyToOne
    @JoinColumn(name = "borehole_id")
    private Borehole borehole;

}
